import { ApiProperty } from '@nestjs/swagger'
import { IsString, MaxLength, IsDecimal, IsInt, Min } from 'class-validator'

export class queryProductDto {
  @ApiProperty({
    description: '产品名称',
    required: false,
  })
  @IsString()
  name: string

  @ApiProperty({
    description: '产品类型',
    required: false,
  })
  @IsString()
  tab_name: string

  @ApiProperty({
    description: '页码',
  })
  @IsInt()
  @Min(1)
  pageNum: number

  @ApiProperty({
    description: '分页数量',
  })
  @IsInt()
  @Min(1)
  pageSize: number
}
